<?php
/**
 * index.php
 * @author ranuandra
 *
 * 9 Agu 2011 09:46:27
 *
 * 
 */
?>
	<table class="tbltitle" align="center">
	<thead>
		<tr>
			<td class="title">
				<?php 
				if(isset($title))
				{
					echo $title;	
				}
				?>
			</td>
			<td class="toolbar">		
					<a href="<?php echo URL::base()?>menu/new" class="clsform">+ New</a> 
			</td>
		</tr>
	</thead>
	</table>
<div class="tbldata">
<table class="data" class="center">
	<thead>
		<tr>
			<th>ID</th>
			<th>Role Name</th>
			<th>Controller</th>
			<th>Action</th>
		</tr>
	<thead>
	<tbody>
<?php 
if(isset($datas))
{
	foreach($datas as $data)
	{
?>
		<tr>
			<td><?php echo $data->id?></td>
			<td><?php echo $data->menu_name?></td>
			<td><?php echo $data->controller?></td>
			<td>
				<table>
					<tr>
						<td class="action"><a href="<?php echo URL::base()?>menu/delete/<?php echo $data->id?>" class="clsform"><span class="icon_delete_16"></span>Hapus</a></td>
						<td class="action"><a href="<?php echo URL::base()?>menu/edit/<?php echo $data->id?>" class="clsform"><span class="icon_edit_16"></span>Edit</a></td>
					</tr>
				</table>
				
				
			</td>
		</tr>
<?php 		
	}
}
?>
	</tbody>
</table>
</div>
